<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% request.setAttribute("ctx", request.getContextPath());%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
</head>
<body>
	<h3>用户列表</h3>
	<table align="left" border="1" cellspacing="1">
		<thead>
			<tr>
				<td>姓名</td>
				<td>用户名</td>
				<td>E-mail</td>
				<td>性别</td>
				<td>手机</td>
				<td>电话</td>
				<td>创建时间</td>
				<td>操作</td>
			</tr>
		</thead>
		<c:forEach items="${userList}" var="user">
			<tr>
				<td><c:out value="${user.name}"/></td>
				<td><c:out value="${user.accountName}"/></td>
				<td><c:out value="${user.mail}"/></td>
				<td><c:out value="${user.sex}"/></td>
				<td><c:out value="${user.mobile}"/></td>
				<td><c:out value="${user.phone}"/></td>
				<td><c:out value="${user.createDate}"/></td>
				<td><a href="${ctx}/userinfo/${user.id}">显示</a>&nbsp;&nbsp;
					<a href="${ctx}/userinfo/${user.id}/edit">修改</a>&nbsp;&nbsp;
					<a href="${ctx}/userinfo/${user.id}/delete">删除</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>